package com.yvtian.admin.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeVO {

    private int id;
    private Integer parentId;
    private String label;
    private List<TreeVO> treeVOS;

    public TreeVO(int id, int parentId) {
        this.id = id;
        this.parentId = parentId;
        treeVOS = new ArrayList<>();
    }
}
